angular.module('appRoutes', []).config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {

	$routeProvider
		.when ('/users', {
			templateUrl: 'views/users.html',
			controller: 'userCtrl'
		})
		.when ('/profile', {
			templateUrl: '/profile',
			controller: 'userProfileCtrl'
		})
		.when ('/main', {
			templateUrl: 'views/main.html',
			controller: 'mainCtrl'
		})
		.otherwise({
			redirectTo : '/main'
		});

	/*$locationProvider.html5Mode(true);*/

}]);